# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=pnscan
pkgver=1.14.1
pkgrel=1
groups=('blackarch' 'blackarch-scanner')
pkgdesc='A parallel network scanner that can be used to survey TCP network services.'
url='http://www.lysator.liu.se/~pen/pnscan/'
arch=('x86_64' 'aarch64')
license=('GPL2')
source=("ftp://ftp.lysator.liu.se/pub/unix/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('c04340e6a7387245678370c3d11f3e137960daede7b3577ef6bf9e2c20a2d9ff062c71b0493ae122450f16015dc87c088c76ca4af2ccad9babde1ee92b1cc3be')

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr --sbindir=/usr/bin

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install

  install -m 755 t_listen "$pkgdir/usr/bin/t_listen"

  chmod 644 "$pkgdir/usr/share/man/man1/$pkgname.1.gz"
}

